package com.atech.ebayadmin.merchandise.service;

import java.util.List;
import java.util.Map;

import com.atech.ebayadmin.merchandise.model.ModifyHistory;
import com.atech.ebayadmin.merchandise.model.Record;
import com.atech.ebayadmin.merchandise.vo.ModifyHistoryVO;
import com.atech.ebayadmin.merchandise.vo.RecordVO;
import com.atech.ebayadmin.system.vo.UserVO;
import  com.atech.ebayadmin.common.pager.Pager;


public interface IMerchandiseService{
    
    // Add for create record
    public Integer saveRecord(Record po)throws Exception;
    
    // Add for list record
    //Added by KK for Search Panel Enhancement on Aug30
    //public List<RecordVO> listRecord(RecordVO vo, Pager pager) throws Exception;
    public List<RecordVO> listRecord(Map vo, Pager pager) throws Exception;
    
    // Add for modify record
    public RecordVO poToVo(Record po) throws Exception;
    public Record getRecord(Integer id)throws Exception;
    public RecordVO getRecordVO(Integer id)throws Exception;
    public void updateRecord(Record po)throws Exception;
    
    // Add for delect select record
    public void deleteSlctRe(String[] slctRe, Map res)throws Exception;
    
    // Add for retrieve modify history
    public List<ModifyHistoryVO> rtrvModifyHisty(Integer key) throws Exception;
    
    // Add for save modify history
    public Integer saveModHisty(ModifyHistory po)throws Exception;
    public Integer saveModHisty(UserVO user, Record reMd)throws Exception;
    
    
}
